package com.example.qa.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author testjava
 * @since 2021-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZhUser对象", description="用户信息表")
public class ZhUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "user_id", type = IdType.ID_WORKER_STR)
    private String userId;


    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "手机")
    private String userMobile;

    @ApiModelProperty(value = "Email")
    private String userEmail;

    @ApiModelProperty(value = "密码")
    private String password;

    private String nickName;

    @ApiModelProperty(value = "真实姓名")
    private String trueName;

    @ApiModelProperty(value = "性别1男0女")
    private Boolean sex;

    private String avatar;

    @ApiModelProperty(value = "目前工作职位")
    private String work;

    @ApiModelProperty(value = "个性签名")
    private String signature;

    @ApiModelProperty(value = "自我介绍")
    private String description;

    @ApiModelProperty(value = "联系电话")
    private String telephone;

    private Integer province;

    private Integer city;

    private Integer area;

    @ApiModelProperty(value = "联系地址")
    private String contactAddr;

    @ApiModelProperty(value = "邮政编码")
    private String zip;

    @ApiModelProperty(value = "QQ")
    private String qq;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "用户习惯方式,配送和支付方式等信息")
    private String custom;

    @ApiModelProperty(value = "最后一次登录时间")
    private Date lastLogin;

    @ApiModelProperty(value = "登录的ip地址")
    private String loginIp;

    @ApiModelProperty(value = "尝试登录，未登录成功次数")
    private Integer attempts;

    @ApiModelProperty(value = "最后尝试登陆未成功时间")
    private Date attemptsTime;

    @ApiModelProperty(value = "注册日期时间")
    @TableField(fill=FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "用户状态 1正常状态 2 未审核通过")
    private Short status;


}
